import Vue from 'vue';

//定义MD5加密KEY
export const md5Key = '23543zczxczdfsaqj23ou89ZXcj@#$@#$#@KJdjklj;D../dSF.,';

//定义文件mimeType
export const mimeTypes = {
	'.3gp': 'video/3gpp',
	'.aac': 'audio/x-aac',
	'.aiff': 'audio/aiff',
	'.avi': 'video/x-msvideo',
	'.bmp': 'image/bmp',
	'.csv': 'text/csv',
	'.doc': 'application/msword',
	'.docx': 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
	'.flash': 'application/x-shockwave-flash',
	'.gif': 'image/gif',
	'.gz': 'application/x-gzip',
	'.html': 'text/html',
	'.jpg': 'image/jpeg',
	'.jpeg': 'image/jpeg',
	'.js': 'application/javascript',
	'.json': 'application/json',
	'.mp3': 'audio/mpeg',
	'.mp4': 'video/mp4',
	'.mpeg': 'video/mpeg',
	'.mpg': 'video/mpeg',
	'.ogg': 'audio/ogg',
	'.pdf': 'application/pdf',
	'.png': 'image/png',
	'.ppt': 'application/vnd.ms-powerpoint',
	'.pptx': 'application/vnd.openxmlformats-officedocument.presentationml.presentation',
	'.rar': 'application/x-rar-compressed',
	'.rtf': 'application/rtf',
	'.svg': 'image/svg+xml',
	'.swf': 'application/x-shockwave-flash',
	'.tar': 'application/x-tar',
	'.tif': 'image/tiff',
	'.tiff': 'image/tiff',
	'.txt': 'text/plain',
	'.wav': 'audio/x-wav',
	'.webm': 'video/webm',
	'.webp': 'image/webp',
	'.woff': 'application/font-woff',
	'.woff2': 'application/font-woff2',
	'.xml': 'text/xml',
	'.zip': 'application/zip',
	// 还可以继续添加其他MIME类型
};

//表单元素类型
export const formElementType = [
	{ type: 1, label: '数值框' },
	{ type: 2, label: '文本框' },
	{ type: 3, label: '文本域' },
	{ type: 4, label: '下拉框' },
	{ type: 5, label: '单选框' },
	{ type: 6, label: '复选框' },
	{ type: 7, label: '日期控件' },
	{ type: 8, label: '图片上传' },
	{ type: 9, label: '文件上传' },
	{ type: 10, label: '富文本控件' }
];

//字典配置类型
export const dictConfigType = [
	{ type: '1', label: '数字(Number)' },
	{ type: '2', label: '开关(Switch)' },
	{ type: '3', label: '单选(Radio)' },
	{ type: '4', label: '单选(imgRadio)' },
	{ type: '5', label: '多选(CheckBox)' },
	{ type: '6', label: '文本(Text)' },
	{ type: '7', label: '文本(TextArea)' },
	{ type: '8', label: '自定义(Custom)' }
]